package com.tsll.service;

import com.tsll.entity.Staff;
import com.tsll.entity.Staffsal;
import com.tsll.vo.EchartsVo;
import com.tsll.vo.Result;

import com.tsll.vo.StaffVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface StaffService {
    public Result selectname(String name, String password);


    Result findByPage(Integer current, Integer pageSize, StaffVo staffVo);
    List<Staff> findBy(Staff staff);
    //删除
    public Result delete(Integer id);
    
    Result all(Integer current, Integer pageSize, StaffVo staffVo);

    int deleteByPrimaryKey(int id);

    //修改工资
    int update(Staffsal staffsal);

    //添加员工
    int addstaff(Staff staff);

    //修改员工
    int updatesatff(Staff staff);

    Result lizhi(Integer current, Integer pageSize, StaffVo staffVo);
    List<EchartsVo> selectname();
    int updateLogin(String newpass,Integer id);
    Result getstaffshu();

    //离职
    Result updateById(@Param("id")Integer id);

    Result selectByStaffid(Integer id);
}
